package com.xiaohao.communication.dao;

import com.xiaohao.communication.bean.Answer;
import com.xiaohao.communication.bean.PraiseDetails;
import com.xiaohao.communication.bean.UserTopic;

import java.util.List;

public interface UserTopicPageDao {

    //发布话题
    public void publishTopic(UserTopic userTopicPage);


    //删除话题
    public void deleteTopic(int id);

    //发布回答
    public void publihAnswer(Answer answer);

    //删除回答
    public void deleteAnswer(int id);

    //点赞
    public void addPraise(PraiseDetails praiseDetails);


    //取消赞
    public void deletePraise(int  topic_id);

    //模糊查询话题
    public List<UserTopic> getUserTopic(String content);

    //获取的当前话题所有回答
    public List<Answer> getCurrTopicAllAnswer(int topic_id);

    //获取所有话题
    public List<UserTopic> getAllUserTopic();

    //获取话题通过话题id
    UserTopic getTopicByTopicId(int topic_id);
}
